package com.java1412.controller.admin;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author java1412
 * @since 2023-08-07 15:39:05
 */
@RestController
@RequestMapping("/admin/test")
//@CrossOrigin
public class AdminTestController {

    // 必须处于登录状态才可以访问
    @GetMapping(value = "/test")
    public String test() {
        System.out.println("test");
        return "test";
    }
}
